<div class="row-fluid">
	<div class="span6">
		<?php
		$this->beginWidget('bootstrap.widgets.TbBox', array(
			'title' => '服务器信息',
			'headerIcon' => 'icon-th-large',
			'htmlContentOptions' => array('class' => 'board-info'),
		));
		?>
		<table>
			<tr>
				<th nowrap="nowrap">操作系统</th>
				<td><?php echo php_uname('s') . ' ' . php_uname('r') . ' ' . php_uname('m'); ?></td>
			</tr>
			<tr>
				<th nowrap="nowrap">服务器</th>
				<td>
					<?php echo $_SERVER['SERVER_SOFTWARE']; ?>
					PHP-<?php echo PHP_VERSION; ?> (<?php echo php_sapi_name(); ?>)
				</td>
			</tr>
			<tr>
				<th nowrap="nowrap">PHP 检测</th>
				<td>
					<?php if (count($phpReport) === 0): ?>
					<div class="text-success">全部通过</div>
					<?php endif; ?>
					<?php foreach ($phpReport as $type => $errors): foreach ($errors as $error): ?>
					<div class="text-<?php echo $type; ?>"><?php echo $error; ?></div>
					<?php endforeach; endforeach; ?>
				</td>
			</tr>
		</table>
		<?php $this->endWidget(); ?>
	</div>
	<div class="span6">
		<?php
		$this->beginWidget('bootstrap.widgets.TbBox', array(
			'title' => PACKAGE_NAME . ' 信息',
			'headerIcon' => 'icon-info-sign',
			'htmlContentOptions' => array('class' => 'board-info'),
		));
		?>
		<table>
			<tr>
				<th nowrap="nowrap">软件版本</th>
				<td><?php echo PACKAGE_NAME . '-' . PACKAGE_VERSION; ?></td>
			</tr>
			<tr>
				<th nowrap="nowrap">项目数量</th>
				<td>
					<?php echo CHtml::link($count . ' 个', array('project/index')); ?>
				</td>
			</tr>
			<tr>
				<th nowrap="nowrap">官方链接</th>
				<td>
					<?php echo CHtml::link('主页', 'http://www.xunsearch.com', array('target' => '_blank')); ?>
					<?php echo CHtml::link('文档', 'http://www.xunsearch.com/doc/php', array('target' => '_blank')); ?>
					<?php echo CHtml::link('论坛', 'http://bbs.xunsearch.com', array('target' => '_blank')); ?>		
				</td>
			</tr>
		</table>
		<?php $this->endWidget(); ?>
	</div>
</div>
<?php $this->renderPartial('//project/_quick_create'); ?>
